home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
vbkontrol.exe
/
EXPVBX22.ZIP
/
EXPRAPP.FRM
< prev
next >
Wrap
Text File
|
1995-06-24
|
5KB
|
156 lines
VERSION 2.00
Begin Form Form2
Caption = "Form2"
ClientHeight = 1845
ClientLeft = 1635
ClientTop = 4035
ClientWidth = 4695
Height = 2220
Icon = EXPRAPP.FRX:0000
Left = 1590
LinkTopic = "Form1"
ScaleHeight = 1845
ScaleWidth = 4695
Top = 3705
Width = 4785
Begin Expr Expr1
IsNumExpr = 0 'False
Left = 3600
NumValue = 0
StrInput = ""
StrLength = 0
Top = 720
End
Begin CommandButton Command2
Caption = "Test dll file"
Height = 375
Left = 2400
TabIndex = 8
Top = 1320
Width = 1455
End
Begin CommandButton Command1
Caption = "Call Expr.vbx"
Height = 375
Left = 240
TabIndex = 2
Top = 1320
Width = 1455
End
Begin TextBox Text1
Height = 285
Left = 120
TabIndex = 0
Text = "a=123, aae=0.4*a, aae+(a+sin(pi))*4^5*ln(exp(56))%11"
Top = 150
Width = 4455
End
Begin Label Label4
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 255
Left = 1800
TabIndex = 7
Top = 720
Width = 615
End
Begin Label Label3
Caption = "Is Numeric express?"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 255
Left = 120
TabIndex = 6
Top = 720
Width = 1935
End
Begin Label Label1
Caption = "Value is:"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 255
Left = 120
TabIndex = 5
Top = 480
Width = 975
End
Begin Label Label2
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 375
Left = 1560
TabIndex = 4
Top = 480
Width = 1815
End
Begin Label Label6
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 315
Left = 1800
TabIndex = 3
Top = 960
Width = 795
End
Begin Label Label5
Caption = "Length is:"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 390
Left = 120
TabIndex = 1
Top = 960
Width = 1050
End
End
Declare Function chkexpr Lib "expr.dll" (ByVal S As String) As Integer
Declare Function expres Lib "expr.dll" (ByVal S As String) As Double
Sub Command1_Click ()
Expr1.StrInput = text1.Text
Label6.Caption = Expr1.StrLength
' test vbx file
Label2.Caption = Expr1.NumValue
If Expr1.IsNumExpr Then Label4 = "True" Else Label4 = "False"
End Sub
Sub Command2_Click ()
' test dll file
Label6.Caption = Len(text1)
Label2.Caption = expres(text1)
If Not chkexpr(text1) Then Label4 = "True" Else Label4 = "False"
End Sub
Sub Form_Load ()
form1.Show
End Sub
Sub Form_Unload (Cancel As Integer)
Unload form1
End Sub